package com.mes.cloud.api.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 系统参数表
 *
 * @author Mr.zhang
 * @version 2019-08-02 10:37:18
 * @email zhangchao4@shinho.net.cn
 */
@Data
public class SysParamRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID", required = false)
    private String id;

    @ApiModelProperty(value = "参数编码", required = true)
    @NotNull(message = "参数编码不能为空")
    private String code;

    @ApiModelProperty(value = "参数名称", required = true)
    @NotNull(message = "参数名称不能为空")
    private String name;

    @ApiModelProperty(value = "参数值选项", required = true)
    @NotNull(message = "参数值选项不能为空")
    private Integer valueOption;

    @ApiModelProperty(value = "父级Id", required = true)
    @NotNull(message = "父级Id不能为空")
    private String parentId;

    @ApiModelProperty(value = "参数值", required = false)
    private String value;

    @ApiModelProperty(value = "参数默认值", required = false)
    private String defaultValue;

    @ApiModelProperty(value = "参数备注", required = false)
    private String remark;

}
